<?xml version="1.0" encoding="utf-8" ?> 
<TestCase testName="Test_03_ReceivePortConductorEx">

	<TestSetup>
		<TestStep assemblyPath="BizUnit.Extensions.dll" typeName="BizUnit.Extensions.ContextPopulateStep">
			<ContextLoad contextKey="connectionString" keyValue="Integrated Security=SSPI;database=BizTalkMgmtDb;server=(local)" dataType="String" />
			<ContextLoad contextKey ="ApplicationName" keyValue ="BizTalk Application 1" dataType="string" />
			<ContextLoad contextKey="ReceivePort" keyValue="HelloWorldReceivePort" dataType="string" />
			<ContextLoad contextKey = "ReceiveLocation" keyValue = "HelloWorldReceiveLocation" dataType = "string" />
		</TestStep>

	</TestSetup>

	<!-- 
	In this test, the context has been loaded in the setup step
	All we are doing here is accessing it to do the file copy step
	-->
   
	<TestExecution>
		<!-- Disable the receive location -->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ReceiveLocationConductorStep">
			<DelayForCompletion>5</DelayForCompletion> <!-- Optional, seconds to delay for this step to complete -->
			<ApplicationName takeFromCtx="ApplicationName"></ApplicationName>
			<ConnectionString takeFromCtx = "connectionString"></ConnectionString>
			<ReceivePortName takeFromCtx = "ReceivePort"></ReceivePortName>
			<ReceiveLocationName takeFromCtx = "ReceiveLocation"></ReceiveLocationName>
			<Action>Disable</Action>
		</TestStep>
		
		<!-- Enable the receive port -->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ReceiveLocationConductorStep">
			<DelayForCompletion>5</DelayForCompletion> <!-- Optional, seconds to delay for this step to complete -->
			<ApplicationName takeFromCtx="ApplicationName"></ApplicationName>
			<ConnectionString takeFromCtx = "connectionString"></ConnectionString>
			<ReceivePortName takeFromCtx = "ReceivePort"></ReceivePortName>
			<ReceiveLocationName takeFromCtx = "ReceiveLocation"></ReceiveLocationName>
			<Action>Enable</Action>
		</TestStep>
		
    </TestExecution>
  
    <!-- Test cleanup: test cases should always leave the system in the state they found it -->
    <TestCleanup>
    </TestCleanup>    

</TestCase>


